package com.wx.disparent.mallparent.dao;

import com.wx.disparent.mallparent.commons.inface.IBaseMapper;
import com.wx.disparent.mallparent.entity.MerchantEntity;
import com.wx.disparent.mallparent.entity.ParaEntity;
import com.wx.disparent.mallparent.entity.ProductEntity;
import com.wx.disparent.mallparent.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author 刘杰龙
 * @version 1.0
 * @description 商家dao层
 * @date 2019/12/9 19:15
 */
@Repository
@Mapper
public interface MerchantMapper extends IBaseMapper<MerchantEntity> {

    //改变商家状态 0.可用  1.禁用
    int changeStatus(Map<String, Object> params);

    //通过手机号码查找商家
    MerchantEntity findByPhone(String phone);

    //通过商家名查找商家
    MerchantEntity findByName(String name);

    List<ParaEntity> findAllPara(Map<String, Object> params);
}
